#!/usr/bin/python

import fm
import wx
import wx.stc as stc

from fm import if_Mac_Unix_Win

settings=fm.settings


# ?? s / text. / text_style. as in text_style.string.fg_color
# ?? s / text. / style.text. as in style.text.string.foreground
# ?? s / text. / textstyle. as in textstyle.string.colorfg
# ?? s / color_fg / fg
# ?? s / color_fg / fg_color? no need, if for filtering, can filter based on actual type
# ?? s / color_fg / foreground?
# ?? s / color_fg / foreground_color?
# ?? s / color_fg / colorfg ***

settings['text.default.font']=if_Mac_Unix_Win('Monaco','Courier New','Courier')
settings['text.default.size']=if_Mac_Unix_Win(14,10,12)
settings['text.default.color_fg']=wx.BLACK
settings['text.default.color_bg']=wx.ColourRGB(0xDDDDDD)
settings['text.margin.colorbg']=wx.ColourRGB(0xC0C0C0)

for s in ('italic','underline','bold'): settings['text.default.'+s]=False

settings['text.string.__inherit__']='text.default'
settings['text.comment.__inherit__']='text.default'
settings['text.keyword.__inherit__']='text.default'
settings['text.methodname.__inherit__']='text.default'
settings['text.classname.__inherit__']='text.default'
settings['text.delimeter.__inherit__']='text.default'
settings['text.char.__inherit__']='text.default'
settings['text.number.__inherit__']='text.default'

settings['text.string.color_fg']    = wx.ColourRGB(0xff0000)

settings['text.comment.color_fg']   = wx.ColourRGB(0x555555)

settings['text.keyword.color_fg']   = wx.ColourRGB(0x00007F)
settings['text.keyword.bold']   = True

settings['text.methodname.color_fg']    = wx.ColourRGB(0x7F007F)
settings['text.classname.color_fg']     = wx.ColourRGB(0x7F007F)
settings['text.classname.underline'] =True
settings['text.delimeter.color_fg'] = wx.ColourRGB(0x555555)
settings['text.char.color_fg']      = wx.ColourRGB(0x555555)
settings['text.number.color_fg']    = wx.ColourRGB(0x555555)

settings['text.caret_fgcolor']=wx.BLACK

settings.setmany('text.brace_match.',
	color_fg=wx.ColourRGB(0xFFFFFF),color_bg=wx.ColourRGB(0x0000FF),
	bold=True,__inherit__='text.default')

settings.setmany('text.brace_mismatch.',
	color_fg=wx.ColourRGB(0x000000),color_bg=wx.ColourRGB(0xFF0000),
	bold=True,__inherit__='text.default')
